package com.coder520.user.dao;

import com.coder520.user.entity.User;

public interface UserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * @Author jinpengshen [www.coder520.com]
     * @Date 2017/7/30 21:33
     * @Param username
     * @Description 根据用户名查询用户
     */
    User selectByUsername(String username);
}